package org.example.mapping;

import org.example.Configuration;
import org.example.type.TypeHandler;

import java.sql.JDBCType;

/**
 * 参数映射器
 */
public class ParameterMapping {


    private  TypeHandler<?> typeHandler;

    private JDBCType jdbcType;

    private String property;

    private Configuration configuration;

    private Class<?> parameterClassType;



    private ParameterMapping() {}




    /**
     * 构造器模式，对外开放构造，关闭修改
     */
    public static class Builder {
        private ParameterMapping parameterMapping = new ParameterMapping();
        public Builder(Configuration configuration,String property,Class<?> type) {
            parameterMapping.configuration = configuration;
            parameterMapping.property = property;
            parameterMapping.parameterClassType = type;

        }


        public ParameterMapping build() {
            return parameterMapping;
        }


    }







}
